package questionnaire;

import java.io.Serializable;
import java.util.ArrayList;


public class Test implements Serializable {

	private static final long serialVersionUID = 1L;
	private ArrayList<Question> test;
	private String nom;
	public Test(String nom){
		this.nom=nom;
		this.test=new ArrayList<Question> ();
	}
	public void ajoutQuestion(Question ques){
		test.add(ques);

	}
	public void supprimerQuestion(Question ques){
		test.remove(ques);
	}
	public String toString(){
		String k="";

		for (Question aTest : test) {
			k = k + aTest + "\n";
		}
		return k;
	}

	public String getNom() {
		return nom;
	}

	public ArrayList<Question> getTest() {
		return test;
	}
}
